//
//  UserMessageModel.m
//  AILock
//
//  Created by 谭亚明 on 2020/7/10.
//  Copyright © 2020 tym. All rights reserved.
//

#import "UserMessageModel.h"

@implementation UserMessageModel

-(NSString*)getEquipmentImage{
    return [NSString stringWithFormat:@"%@%@",BaseImageUrl,self.equipmentImage];
}

-(NSString*)getTypeStr{
    if (self.type == 1) {
        return @"系统消息";
    }else if (self.type == 2) {
        return @"家庭消息";
    }else if (self.type == 3) {
        return @"系设备消息";
    }else if (self.type == 4) {
        return @"客服消息";
    }
    return @"";
}

@end

@implementation MessageConfig

+ (NSDictionary *)modelContainerPropertyGenericClass {
    return @{@"userEquipmentMessageConfigList" : [UserMessageModel class]};
}
@end
